<template>
  <div id="app-container">
    <nav class="nav">
      <router-link to="/">Home</router-link> |
      <router-link to="/about">About</router-link>
    </nav>
    <div class="container-main">
      <router-view />
    </div>
  </div>
</template>

<script>

export default {
  name: 'App',
}
</script>

<style lang="scss">
#app-container {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color: #2c3e50;
  display: flex;
  flex-direction: column;
}

.nav {
  margin: 20px 0;
  text-align: center;

  a {
    font-weight: bold;
    color: #2c3e50;

    &.router-link-exact-active {
      color: #42b983;
    }
  }
}

.container-main {
  flex: 1;
}

/* 控制滚动条的宽度 */
::-webkit-scrollbar {
  width: 10px;
}

/* 控制滚动条轨道的颜色、圆角等 */
::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

/* 控制滚动条滑块的颜色、圆角、内阴影等 */
::-webkit-scrollbar-thumb {
  background-color: #a8a8a8;
  border-radius: 5px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  background: rgb(34, 193, 195);
  background: linear-gradient(0deg,
      rgb(148, 158, 244) 0%,
      rgb(88, 224, 255) 100%);
}
</style>
